/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.CompisitionDemo.Impl;

import za.ac.cput.CompisitionDemo.AccountInterface;

/**
 *
 * @author Leo
 */
public class AccountImpl implements AccountInterface{

    private double oldBl;
    private double amnt;
    
     public AccountImpl(){         
     }


    @Override
    public double getAmnt() {
        return amnt;
    }

    @Override
    public void setAmnt(double amnt) {
        this.amnt = amnt;
    }

    @Override
    public double getOldBl() {
        return oldBl;
    }

    @Override
    public void setOldBl(double oldBl) {
        this.oldBl = oldBl;
    }
 

    @Override
    public double withdraw() {
        return oldBl-amnt;
    }

    @Override
    public double deposit(double amount) {
        return oldBl+amount;
    }
    
}
